package com.iotmonitor.iot.domain.dto;


import lombok.Data;
import java.io.Serializable;

/**
 * 设备DTO
 * @author 16554
 */
@Data
public class DeviceDTO implements Serializable {

    /**
     * 设备编号
     */
    private String deviceId;

    /**
     * 是否告警
     */
    private Boolean alarm;

    /**
     * 告警名称
     */
    private String alarmName;

    /**
     * 告警级别
     */
    private Integer level;

    /**
     * 是否在线
     */
    private Boolean online;

    /**
     * 标签
     */
    private String tag;

    /**
     * 开关状态
     */
    private Boolean status;

    public DeviceDTO(String deviceId) {
        this.deviceId = deviceId;
        this.alarm = false;
        this.alarmName = "正常";
        this.level = 0;
        this.online = true;
        this.tag = tag;
        this.status = true;
    }

    public DeviceDTO(){}
}
